package com.zx.idc.backend.gui.api.ws.services.handler.strategy.command.commandtype;

import com.zx.idc.backend.gui.api.ws.services.handler.strategy.command.base.CommandType;
import com.zx.idc.backend.gui.api.ws.services.handler.strategy.entity.Option;
import com.zx.idc.backend.gui.api.commom.entity.CommandModel;
import org.springframework.stereotype.Component;

/**
 * Created by hasee on 2019/2/21.
 * 保留指令
 */
@Component
public class ReservedImpl implements CommandType {
    private static final int num = 3;

    @Override
    public boolean isMatch(Option option) {
        return option.getType() == num;
    }

    @Override
    public String execute(java.lang.String xmlData, CommandModel commandModel) {
        //数据格式验证通过则扔到队列返回结果
        return null;
    }
}
